namespace WebSiteFool.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class RenameContentTypeColumn : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.Picture", "Name", c => c.String());
            AddColumn("dbo.Picture", "ContentType", c => c.String());
            AlterColumn("dbo.Picture", "Image", c => c.Binary());
            DropColumn("dbo.Picture", "ImageExt");
        }
        
        public override void Down()
        {
            AddColumn("dbo.Picture", "ImageExt", c => c.String());
            AlterColumn("dbo.Picture", "Image", c => c.Binary(maxLength: 1024));
            DropColumn("dbo.Picture", "ContentType");
            DropColumn("dbo.Picture", "Name");
        }
    }
}
